home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-05-22 | 1.5 KB | 59 lines | [TEXT/CWIE] |
- // Application-global prototypes and variables
-
- #ifndef __APP__
- #define __APP__
-
- // System headers
- #include <Events.h>
- #include <Files.h>
- #include <Menus.h>
-
- // Global constants
-
- // Globals (globals.c)
-
- typedef struct {
- Boolean Done;
- } GlobalsStruct;
-
- extern GlobalsStruct g;
-
-
- // Event handling (event.c)
-
- void EventLoop();
-
-
- // Initalization and Deinitialization code (init.c)
-
- void DoInit(void); // Run the program's startup sequence
- void DeInit(void); // Run the program's shutdown sequence
-
-
- // Miscellaneous Macintosh Utilities (MacUtils.c)
- void EnDisItem(MenuHandle mh, short item, Boolean enable);
- void SetCheckMark(MenuHandle mh, short item, Boolean enable);
- void UserMessage(Str255 theMessage);
- Boolean UserQuestion(Str255 theMessage);
-
-
- // Menu code (menus.c)
-
- // Menu Handling
- void MenuBarInit(); // Initialize the Menu Bar
- void DoMenuChoice(long menuResult); // Handle Menu selections
- void DoMenuSetup(void); // Set up the menus to handle a hotkey or menu selection
-
-
- // QuickTime Movie handling code (qtmovies.c)
-
- void StandardFileOpenMovie(); // Get a movie using the Standard File Package
- OSErr OpenMovieInWindow(FSSpec *theFSSpec); // Given an FSSpec, open a movie and place it in a document window
- void CloseMovieByWindow(WindowPtr theWindow); // Close a movie from a WindowPtr
- void CloseAllMovies(); // Close all open movie documents
- Boolean CheckMovieControllers(EventRecord *theEvent); // Run an event by all the active movie controllers
- void MyMoviesTask(WindowPtr theWindow);
-
-
- #endif // #ifndef __APP__
-